

CN = ["邮箱","手机"]
EN = ["mail","phone"]

module.exports = (err, account)->
    if 'account' of err
        pos = err.account-1
        switch pos
            when 0,1
                err.account = """#{CN[pos]}未注册 , <a href="/auth/#{EN[pos]}/new-#{$.escape account}">点此注册</a>"""
            else
                err.account = "该账户不存在"
        return err
